<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/12/31
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
</head>
<body>
<center><h1>权限列表</h1>
<%--    <a href="<%=basePath%>view/system/sysPermission/addSysPermission.jsp">增加</a>--%>
    <a href="<%=basePath%>sysPermissionController/addUI">增加</a>
    <hr>
    <table width="80%" border="1">
        <tr>
            <td>ID</td>
            <td>父ID</td>
            <td>权限名称</td>
            <td>权限编码</td>
            <td>图标</td>
            <td>url</td>
            <td>类型</td>
            <td>状态</td>
            <td colspan="2">操作</td>
        </tr>
        <c:forEach items="${sysPermissionList_db}" var="sysPermission_db">
            <tr>
                <td>${sysPermission_db.permissionId}</td>
                <td>${sysPermission_db.pId}</td>
                <td>${sysPermission_db.permissionName}</td>
                <td>${sysPermission_db.permissionCode}</td>
                <td>${sysPermission_db.icon}</td>
                <td>${sysPermission_db.url}</td>
                <td>${sysPermission_db.type}</td>
                <td>${sysPermission_db.state}</td>
                <td><a href="<%=basePath%>sysPermissionController/delete?permissionIdStr=${sysPermission_db.permissionId}">删除</a></td>
                <td><a href="<%=basePath%>sysPermissionController/updateUI?permissionIdStr=${sysPermission_db.permissionId}">修改</a></td>
            </tr>
        </c:forEach>
    </table>
    <p><br></p>
    <input type="button" value="首页">
    <input type="button" value="上一页">
    <input type="button" value="1">
    <input type="button" value="2">
    <input type="button" value="3">
    <input type="button" value="4">
    <input type="button" value="5">
    <input type="button" value="6">
    <input type="button" value="7">
    <input type="button" value="8">
    <input type="button" value="9">
    <input type="button" value="10">
    <input type="button" value="下一页">
    <input type="button" value="尾页">
</center>
</body>
</html>
